﻿using ProTrack.Dto;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Text;
using System.Threading.Tasks;
using System.Transactions;

namespace ProTrack.IRepository.WareHouse
{
    public interface IStockRepository
    {

        /// <summary>
        /// 增加入库数量
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public Task<bool> AddStock(List<ItemStockDto> list,SqlConnection BaseConnection, IDbTransaction tran);


        /// <summary>
        /// 减少入库数量
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public Task<bool> SubStock(List<ItemStockDto> list, SqlConnection BaseConnection, IDbTransaction tran);


        /// <summary>
        /// 增加出库数量
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public Task<bool> AddSales(List<ItemStockDto> list, SqlConnection BaseConnection, IDbTransaction tran);


        /// <summary>
        /// 减少出库数量
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public Task<bool> SubSales(List<ItemStockDto> list, SqlConnection BaseConnection, IDbTransaction tran);
    }
}
